<template>
<Creator :form="form" :items="items"></Creator>
</template>

<script>
import Creator from '@/components/FormCreator/Creator/Creator'
import api from '@/assets/js/api'
export default {
  name: 'index',
  components: {
    Creator
  },
  data () {
    return {
      form: {},
      items: {}
    }
  },
  mounted () {
    let _this = this
    api.get('/admin/AdminGroup/add', {}, function (res) {
      _this.form = res.d.show.entity
      _this.items = res.d.show.form
      console.log(res.d.show.form)
    })
  }
}
</script>

<style scoped>

</style>
